//
//  CCNSLock.h
//  CCFC_IPHONE
//
//  Created by  xuchen(陈旭)， xichen(陈曦)， qq：511272827 on 10-11-14.
//  Copyright 2010 cc_team. All rights reserved.
//

#ifndef	CC_NSLOCK
#define	CC_NSLOCK

#include "CCAll.h"

#ifdef	OBJC_MACRO
#import <Foundation/Foundation.h>

#define		LOCK(lockObj)		[lockObj lock]
#define		UNLOCK(lockObj)		[lockObj unlock]
#define		IS_LOCK(lockObj)	([lockObj tryLock] == NO)

#define		ENTER_CRITICAL		@synchronized(self) {
#define		LEAVE_CRITICAL		}

@interface CCNSLock : NSObject 
{
	
}

@end

#endif	//OBJC_MACRO
#endif	//CC_NSLOCK
